package cn.ztydata.teachingsystem.heaven.web.dto;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 课程结构dto类
 * Created by chenxin on 2014/12/16.
 */
public class StructDto {
    @NotNull
    @Min(value = 1, message = "课程ID不合法")
    private Long id; //课程Id
    @NotBlank
    @Length(min = 1, max = 10, message = "结构名称长度为1~10")
    private String oneLevelName; //一级结构名称
    @NotBlank
    @Length(min = 1, max = 10, message = "结构名称长度为1~10")
    private String twoLevelName; //二级结构名称

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOneLevelName() {
        return oneLevelName;
    }

    public void setOneLevelName(String oneLevelName) {
        this.oneLevelName = oneLevelName;
    }

    public String getTwoLevelName() {
        return twoLevelName;
    }

    public void setTwoLevelName(String twoLevelName) {
        this.twoLevelName = twoLevelName;
    }
}
